<?php
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class DocarioViewFileproperties extends JView {
    function display($tpl = null) {
        $id = JRequest::getVar('fid');
        
        $model = $this->getModel();
        
        $model->setId($id);
        
        $file = $model->getFileInfo();
        $file_revisions = $model->getFileRevisions();
        
        $this->assignRef('file', $file);
        $this->assignRef('file_revisions', $file_revisions);
        
        parent::display($tpl);
    }
}
